package com.cjg.xiancheng;

public class threadTest2 implements Runnable {
    @Override
    public void run() {
        for (int i = 0; i < 200; i++) {
            System.out.println("第二个线程的第"+i+"个");
        }

    }


    public static void main(String[] args) {
        threadTest threadTest = new threadTest();
        Thread thread =new Thread(threadTest);
        thread.start();

        for (int i = 0; i < 1000; i++) {
            System.out.println("第一个线程的第"+i+"个");
        }
    }
}
